package cn.it.shop.service.impl;

import java.util.List;

import org.hibernate.classic.Session;
import org.springframework.stereotype.Service;

import cn.it.shop.lucene.LuceneService;
import cn.it.shop.pojo.Goods;
import cn.it.shop.service.GoodsService;

@Service(value = "goodsService")
@SuppressWarnings("unchecked")
public class GoodsServiceImpl extends BaseServiceImpl<Goods> implements
		GoodsService {

	@Override
	public List<Goods> queryByCommendAndOpen(int cid) {
		return goodsDao.queryByCommendAndOpen(cid);
	}

	@Override  //AOP 再切目标对象的连接点时，只能切入 pubilc的方法,不能切入继承方法
	public void save(Goods t) {
		goodsDao.save(t);
	}

	@Override
	public List<Goods> queryByName(String name) {
		return null;
	}
}
